package com.jyu.work;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
// @MapperScan("com.jyu.work.mapper")  //mapper扫描器
@Slf4j
@ComponentScan("com.jyu") // commom文件夹移动至 com.jyu下，添加扫描器
@EnableTransactionManagement
public class MyWork2Application {
    public static void main(String[] args) {
        SpringApplication.run(MyWork2Application.class, args);

        System.out.println("服务地址：  http://localhost:8481\n");
        System.out.println("token: 两个小时失效");
    }

}
